package com.example.cursor_orm.model;

/**
 * 权限模型类
 * 对应数据库表: permission
 */
public class Permission {
    private Integer id;
    private String name;
    private String description;

    // 构造函数
    public Permission() {}

    public Permission(String name, String description) {
        this.name = name;
        this.description = description;
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Permission{" +
               "id=" + id +
               ", name='" + name + '\'' +
               ", description='" + description + '\'' +
               '}';
    }
} 